Batch 3 - Class 259 - Probability in Gaming - Monopoly, Pagerank

(zoom)
Pre-Class Exercise

Attendance    Advay, Raghav, Angad, Ayush, Aneesh, Shikhar, SiddharthT, Harshiet, SiddhantJ, Anshi, Kabir, Rohan, Aashvi, Mihir, Rhea, Vansh, Vivaan, Anishka, Arjun, Aarkin, Kushagra, Rehan, Arnav

Class Notes: 
Review of Last Class. Key concepts
Casino Games
Bookies

Today: What if the events are not independent? History affects the future?

Simple Chair Game
Lets have two chairs A and B. A person starts sitting at either of those chairs, and on each time interval, she stays or swaps chairs on basis of the following rules:
After a long series of events, what is the probability of us finding her on chair A versus B?

Rainy Day
Suppose I told you that in a year, chances of a day being rainy is 0.5 and chances of a day being sunny is 0.5. It is raining today, what are the chances it will rain tomorrow?

Aha! So we can get 50:50 probability even when events are not independent. These are called Markov Chains.

Let's try to find a simple way to solve these using linear equations

So why is this interesting - Monopoly!
How does Monopoly work? Can we think of it as probability of landing on a given square? What does that depend on?

So if we tell you where you are currently, you can find out the probability of where you land up next. Just like in above examples, we had two states, here we have 40 states (if we incorporate the doubles and other cards all into the probability computation).

What will happen if we now solve it over large number of throws?

Lets see - this is where we can be with 2000 rolls (http://bewersdorff-online.de/amonopoly/monopoly_s.htm)

And this is where we land up after a long set of moves - What can you deduce from it? (Look at Jail and Just Visiting together. Don't bother about the colors yet)
If you were playing Monopoly, how would you incorporate this into your gameplay?

Instructor Notes: Let kids think about the questions above, and get to the criteria - For example: one should buy properties that have the highest earning potential in relation to their cost. Or breakeven point. Or highest chances of an opponent coming to it.

Lets see some of the results:

And for color sets:


And to Practical Stuff - Foundations of Google Pagerank
Google ranks all web pages as per pagerank. Lets see the basis of this:

Time permitting, lets calculate relative ranks of the pages in following web.

Google also solves the "dead end" problem, by taking a probability that at any point, the surfer may just quit random navigation and type in one of the pages in URL (effectively "jump").

(See Excel Sheet Pagerank Attached)

Homework
Think about one more game that you like, which can be modeled as Markov Chain. Think about what "states" represent, and how you would create a transition diagram. Think about the elements you would take into account to assign probabilities to transition. Finally, on a simplistic version, try to find probabilities of outcomes. What outcomes are important in your game?

References:
https://plus.maths.org/content/be-fair
http://galileo.org/markov-process/
https://www.quora.com/How-do-I-explain-Markov-chains-to-a-10-year-old-1
https://www.dropbox.com/s/sme0ezqsb69yg7k/Hannah-monopoly-plots.pdf?dl=0
https://math.dartmouth.edu/archive/m20f10/public_html/mcpc.pdf